package com.hs.communication.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ups实时信息
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ChargerData {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String sn;
    private String connection;//连接方式,是MQTT还是socket
    private LocalDateTime reportTime;
    private double voltageInput;
    private double voltageOutput;
    private double currentInput;
    private double currentOutput;
    private double frequencyInput;
    private double frequencyOutput;
    private double chargingTime;
    private double chargingEnergy;
}
